
pot0=m_holdem_state[(m_ndx)&0xff].m_pot[0];
pot1=m_holdem_state[(m_ndx)&0xff].m_pot[1];
pot2=m_holdem_state[(m_ndx)&0xff].m_pot[2];
pot3=m_holdem_state[(m_ndx)&0xff].m_pot[3];
pot4=m_holdem_state[(m_ndx)&0xff].m_pot[4];
pot5=m_holdem_state[(m_ndx)&0xff].m_pot[5];
pot6=m_holdem_state[(m_ndx)&0xff].m_pot[6];
pot7=m_holdem_state[(m_ndx)&0xff].m_pot[7];
pot8=m_holdem_state[(m_ndx)&0xff].m_pot[8];
pot9=m_holdem_state[(m_ndx)&0xff].m_pot[9];

if (pot9>0) {
	tableimagepot9.total=&pot9;
 tableimage.pots.push_back(&tableimagepot9);
}

if (pot8>0) {
	tableimagepot8.total=&pot8;
 tableimage.pots.push_back(&tableimagepot8);
}

if (pot7>0) {
	tableimagepot7.total=&pot7;
 tableimage.pots.push_back(&tableimagepot7);
}

if (pot6>0) {
	tableimagepot6.total=&pot6;
 tableimage.pots.push_back(&tableimagepot6);
}

if (pot5>0) {
	tableimagepot5.total=&pot5;
 tableimage.pots.push_back(&tableimagepot5);
}

if (pot4>0) {
	tableimagepot4.total=&pot4;
 tableimage.pots.push_back(&tableimagepot4);
}

if (pot3>0) {
	tableimagepot3.total=&pot3;
 tableimage.pots.push_back(&tableimagepot3);
}

if (pot2>0) {
	tableimagepot2.total=&pot2;
 tableimage.pots.push_back(&tableimagepot2);
}

if (pot1>0) {
	tableimagepot1.total=&pot1;
 tableimage.pots.push_back(&tableimagepot1);
}

if (pot0>0) {
	tableimagepot0.total=&pot0;
 tableimage.pots.push_back(&tableimagepot0);
}